From: nana-4 Date: Sun, 19 Jan 2020 16:18:06 +0000 (+0900) Subject: theme: Move basic selectors into _base.scss X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~48 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=90786509bbeb16165a5e2fd570e098dff2a5f4fe;p=gnome-shell.git theme: Move basic selectors into _base.scss .shell-link, .lowres-icon and .icon-dropshadow could be used globally. For the icon shadow classes, they're used by officially supported extensions.[1] [1] https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/168 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938 --- diff --git a/data/theme/gnome-shell-sass/_widgets.scss b/data/theme/gnome-shell-sass/_widgets.scss index 4ff6a122c..48d440f58 100644 --- a/data/theme/gnome-shell-sass/_widgets.scss +++ b/data/theme/gnome-shell-sass/_widgets.scss @@ -7,6 +7,7 @@ /* WIDGETS */ // Primary widgets +@import 'widgets/base'; @import 'widgets/entries'; @import 'widgets/buttons'; @import 'widgets/check-box'; diff --git a/data/theme/gnome-shell-sass/widgets/_app-grid.scss b/data/theme/gnome-shell-sass/widgets/_app-grid.scss index ba6eb608d..8c68d3720 100644 --- a/data/theme/gnome-shell-sass/widgets/_app-grid.scss +++ b/data/theme/gnome-shell-sass/widgets/_app-grid.scss @@ -20,16 +20,6 @@ $app_icon_padding: 24px; $app_grid_fg_color: #fff; -// Outline for low res icons -.lowres-icon { - icon-shadow: 0 1px 2px rgba(0,0,0,0.3); -} - -// Dropshadow for large icons -.icon-dropshadow { - icon-shadow: 0 1px 2px rgba(0,0,0,0.4); -} - // Icon tiles in the app grid .app-well-app, %app-well-app { diff --git a/data/theme/gnome-shell-sass/widgets/_base.scss b/data/theme/gnome-shell-sass/widgets/_base.scss new file mode 100644 index 000000000..914dd5955 --- /dev/null +++ b/data/theme/gnome-shell-sass/widgets/_base.scss @@ -0,0 +1,18 @@ +// Links +.shell-link { + color: $link_color; + + &:hover { + color: lighten($link_color, 10%); + } +} + +// Outline for low res icons +.lowres-icon { + icon-shadow: 0 1px 2px rgba(black, 0.3); +} + +// Dropshadow for large icons +.icon-dropshadow { + icon-shadow: 0 1px 2px rgba(black, 0.4); +} diff --git a/data/theme/gnome-shell-sass/widgets/_misc.scss b/data/theme/gnome-shell-sass/widgets/_misc.scss index 8f7e8d824..fd6613dae 100644 --- a/data/theme/gnome-shell-sass/widgets/_misc.scss +++ b/data/theme/gnome-shell-sass/widgets/_misc.scss @@ -1,9 +1,4 @@ -// Links/URLs -.shell-link { - color: $link_color; - &:hover { color: lighten($link_color,10%); } -} - +// URLs .url-highlighter { link-color: $link_color; } // Rubberband for select-area screenshots diff --git a/data/theme/meson.build b/data/theme/meson.build index ec750ef19..6305b590f 100644 --- a/data/theme/meson.build +++ b/data/theme/meson.build @@ -8,6 +8,7 @@ theme_sources = files([ 'gnome-shell-sass/_widgets.scss', 'gnome-shell-sass/widgets/_app-grid.scss', 'gnome-shell-sass/widgets/_app-switcher.scss', + 'gnome-shell-sass/widgets/_base.scss', 'gnome-shell-sass/widgets/_buttons.scss', 'gnome-shell-sass/widgets/_calendar.scss', 'gnome-shell-sass/widgets/_check-box.scss',